Skip to content

ignore cmake/ directory in bazel source file checks#2936

Merged
kilograham merged 1 commit into
developfrom
relax-bazel-check
May 16, 2026
Merged

ignore cmake/ directory in bazel source file checks#2936
kilograham merged 1 commit into
developfrom
relax-bazel-check

Conversation

@kilograham
Copy link
Copy Markdown
Contributor

@kilograham kilograham requested a review from will-v-pi May 14, 2026 20:12
@kilograham kilograham added this to the 2.2.1 milestone May 14, 2026
@kilograham kilograham changed the title only check for source files in src/ and test/ only check for source files in src/ and test/ for bazel build May 14, 2026
Copy link
Copy Markdown
Contributor

@will-v-pi will-v-pi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't fix the issue you're seeing in #2921 - you also need to change git_ls_files_by_extension to only return files in these paths.

Also, it's not just files under src and test that should be checked, it should also check tools/pioasm, so I think excluding cmake is possibly the better option than explicitly specifying paths to search?

A fix could be to revert this change and just add

bazel_files = [f for f in bazel_files if not f.is_relative_to("cmake")]

before return bazel_files in git_ls_files_by_extension, to exclude the files under cmake

@kilograham kilograham force-pushed the relax-bazel-check branch from 260baf0 to 53ce06f Compare May 16, 2026 16:38
@kilograham kilograham changed the title only check for source files in src/ and test/ for bazel build ignore cmake/ directory in bazel source file checks May 16, 2026
@kilograham
Copy link
Copy Markdown
Contributor Author

i have force pushed your change.

if you are feeling keen @will-v-pi can you fix it to not complain if you have board definitions headers which aren't checked it ;-)

@kilograham kilograham merged commit c1b6b52 into develop May 16, 2026
14 checks passed
@kilograham kilograham deleted the relax-bazel-check branch May 16, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants